package com.xzl.time.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzl.time.pojo.Article;
import com.xzl.time.pojo.vo.ArticleThumbUpVo;
import com.xzl.time.pojo.vo.UpdArticleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章 Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2021-12-03
 */
public interface ArticleMapper extends BaseMapper<Article> {
    //通过文章id修改文章
    Integer updArticleById(@Param("articleVo") UpdArticleVo articleVo);

    List<Article> getArticleByUserName(String userName);

    List<Article> selectAll();

    void thumbsUp(@Param("paramData") ArticleThumbUpVo articleThumbUpVo);

    String getUserByArticleId(@Param("articleId") String articleId);
}
